<?php

namespace App\Consts;

/**
 * 队列场景值
 * Class GlobalQueueConst
 * @package App\Consts
 */
class GlobalQueueConst
{

    // driver type
    public const DRIVER_TYPE_QUEUE = 'queue';
    public const DRIVER_TYPE_BATCH = 'batch';
    public const DRIVER_TYPE_SYNC = 'sync';

    // attention
    public const ATTENTION_PUSH = 'attentionPush';
    public const ATTENTION_CANCEL_DEL = 'cancelDel';

    // log
    public const LOG_COUNTER_CREATE = 'create';

    // quick collect
    public const QUICK_COLLECT_RUN = 'run';

    // browser history
    public const BROWSER_HISTORY_CREATE = 'create';

    // collect
    public const CREATE_COLLECT = 'collect';
    public const CREATE_CANCEL = 'cancelCollect';
    public const CREATE_CANCEL_BY_TARGET = 'cancelCollectByTargetId';

    // comment
    public const COMMENT_SEND = 'sendComment';
    public const COMMENT_CHANGE_STATUS = 'changeStatus';
    public const COMMENT_CHANGE_AUTHOR_REPLY = 'changeHaveAuthorReply';
    public const COMMENT_CHANGE_HOT = 'changeHot';

    // dynamic
    public const DYNAMIC_CREATE = 'create';
    public const DYNAMIC_DEL_BY_DYNAMIC = 'deleteByDynamic';
    public const DYNAMIC_DEL_BY_ARTICLE = 'deleteByArticle';
    public const DYNAMIC_DEL_BY_NOTE = 'deleteByNote';

    // like
    public const LIKE_CANCEL_BY_NOTE = 'cancelLikeByNote';

    // note
    public const NOTE_DEL_TOPIC_TARGET_RELATION = 'delTopicTargetRelation';
    public const NOTE_SELF = 'noteToSelf';

    // package
    public const PACKAGE_DEL_PACKAGE = 'delPackage';
    public const PACKAGE_CHANGE_TOTAL = 'changeTotal';

    // report
    public const REPORT_NOTIFY = 'notify';

    // message
    public const MESSAGE_CHANGE_ANNOUNCE_READ = 'changeAnnounceRead';
    public const MESSAGE_CHANGE_UNREAD_COUNT = 'changeUnreadCount';
    public const MESSAGE_STATIC_COMMENT = 'saveAndStaticCommentMessage';
    public const MESSAGE_STATIC_LIKE = 'staticLikeMessage';
    public const MESSAGE_DEL_COMMENT = 'delCommentMessage';
    public const MESSAGE_DEL_REPLY = 'delReplyMessage';

    // recommend system
    public const RECOMMEND_SYSTEM_ADD_TARGET = 'addTarget';
    public const RECOMMEND_SYSTEM_ADD_VIEW = 'addView';
    public const RECOMMEND_SYSTEM_REMOVE = 'remove';

}
